@echo off

git add .


for /f "tokens=1-3 delims=.-/ " %%a in ('echo %DATE%') do (
    set "day=%%a"
    set "month=%%b"
    set "year=%%c"
)

for /f "tokens=1-4 delims=:. " %%a in ('echo %TIME%') do (
    set "hour=%%a"
    set "minute=%%b"
    set "second=%%c"
    set "millisecond=%%d"
)

set "datetime=%day%-%month%-%year% %hour%:%minute%:%second%%"

git commit -m "Commit on %datetime%"


rem git commit -m 'update-%date% %time%'

git push -f weixinPrtSc master

echo push time :  %datetime%



pause